# -*- coding: utf-8 -*-

from flask import Flask
"""
Flask 路由
"""
app = Flask(__name__)

@app.route('/')
def index():
    return "Hello, World!"

@app.route('/hello/<name>')
def hello_name(name):
   return 'Hello %s!' % name

@app.route('/blog/<int:postID>')
def show_blog(postID):
   return 'Blog Number %d' % postID

@app.route('/rev/<float:revNo>')
def revision(revNo):
   return 'Revision Number %f' % revNo

@app.route('/flask')
def hello_flask():
   return 'Hello Flask'

@app.route('/python/')
def hello_python():
   return 'Hello Python'

if __name__ == "__main__":
    app.run(debug=True)